import org.junit.jupiter.api.Assertions;

import static org.junit.Assert.assertEquals;

public class NGuessNumberTest {
    private static NGuessNumber liyanhong = new NGuessNumber();
    @org.junit.jupiter.api.Test
    void generateAnswerTest() {
        //通过
        assertEquals(4, liyanhong.generateAnswer().size());
    }
    @org.junit.jupiter.api.Test
    void getPlayerInputTest() {
        //通过
        Assertions.assertEquals(4, liyanhong.getPlayerInput().length);
    }
    @org.junit.jupiter.api.Test
    void compareGuessAnswerTest() {
        //通过
        Assertions.assertEquals(true, liyanhong.compareGuessAnswer());
    }
}
